package edu.weseda.simulator;

import java.util.List;


public class SimulationResultSet {
	
	private List<Double> lampRatio;
	private List<Double> illuminationValue;
	private List<Double> lampOnlyIllumination;// illumination without day light
	

	public List<Double> getLampOnlyIllumination() {
		return lampOnlyIllumination;
	}

	public void setLampOnlyIllumination(List<Double> lampOnlyIllumination) {
		this.lampOnlyIllumination = lampOnlyIllumination;
	}

	public List<Double> getLampRatio() {
		return lampRatio;
	}
	
	public void setLampRatio(List<Double> lampRatio) {
		this.lampRatio = lampRatio;
	}
	
	public List<Double> getIlluminationValue() {
		return illuminationValue;
	}
	
	public void setIlluminationValue(List<Double> illuminationValue) {
		this.illuminationValue = illuminationValue;
	}

	public double getEnergySavingProportion(){
		double sum = 0.0;
		for(double ratio: lampRatio){
			sum += ratio;
		}
		return sum/lampRatio.size();
	}
	
	public double getAverageIllumination(){
		double sum = 0.0;
		for(double illum : illuminationValue){
			sum += illum;
		}
		return sum/illuminationValue.size();
	}

}
